import { get, post, put } from '../tools/request';

export const LoginAPI = (data) => post('/api/v1/auth/login', data);
export const RegAPI = (data) => post('/api/v1/auth/reg', data);
export const InfoAPI = () => get('/api/v1/user/info');
export const AlertUser = (data) => put('/api/v1/user/modify', data);
export const AlertPassword = (data) => put('/api/v1/user/update_pwd', data);
export const imgUpdateAPI = (data) => post('/api/v1/common/upload_file', data);
